Namespace: Microsoft.ConfigurationManagement.ApplicationManagement
Assembly: Microsoft.ConfigurationManagement.ApplicationManagement (in Microsoft.ConfigurationManagement.ApplicationManagement.dll)

Usage

Visual Basic
Dim info As MemberInfo
Dim inherit As Boolean
Dim returnValue As IEnumerable(Of T)

returnValue = Utilities.GetCustomAttributes(info, inherit)

Syntax

Visual Basic
<SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")> _
<ExtensionAttribute> _
Public Shared Function GetCustomAttributes(Of T As Attribute) ( _
		info As MemberInfo, _
		inherit As Boolean _
) As IEnumerable(Of T)
C#
[SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")] 
[ExtensionAttribute] 
public static IEnumerable<T> GetCustomAttributes<T> (
		MemberInfo info,
		bool inherit
) where T : Attribute
C++
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1004:GenericMethodsShouldProvideTypeParameter")] 
[ExtensionAttribute] 
public:
generic<typename T> where T : Attribute
static IEnumerable<T>^ GetCustomAttributes (
		MemberInfo^ info, 
		bool inherit
)
J#

JScript

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

See Also